import request from '@/utils/request'

const api = {
  getTeamByProject: '/api/team/project',
  saveTeamByProject: '/api/team/save',
  updateTeamByProject: '/api/team/update',
  deleteTeamByProject: '/api/team/delete'
}

export default api

export function getTeamByProject (parameter) {
  return request({
    url: api.getTeamByProject,
    method: 'post',
    config: 'x-www-form-urlencoded',
    params: parameter
  })
}

export function saveTeamByProject (parameter) {
  return request({
    url: api.saveTeamByProject,
    method: 'post',
    config: 'x-www-form-urlencoded',
    params: parameter
  })
}
export function updateTeamByProject (parameter) {
  return request({
    url: api.updateTeamByProject,
    method: 'post',
    config: 'x-www-form-urlencoded',
    params: parameter
  })
}
export function deleteTeamByProject (parameter) {
  return request({
    url: api.deleteTeamByProject,
    method: 'post',
    config: 'x-www-form-urlencoded',
    params: parameter
  })
}
